package com.thiscc.sum.bean;


import com.thiscc.sum.constance.Type;

/**
 * 总结实体数据,用于首页数据展示封装
 * 
 * @author Einstein
 */
public class Summary {
	private String write_id="null";//主键 
	private String typeTitle;  
	private Type type;// 类型
	private String classify;//总结类型 
	private String chiness;// 中文
	private String english;// 英文
	private String date;// 时间
	private boolean finsh;// 是否完成
	private int readsum;// 总阅读人数
	private int read;// 阅读数
	private boolean share;// 是否分享
	private int reply;// 回复数
	private int year;// 年
	private int month;// 月
	private int day;//日 
	private boolean draft;//是否草稿
	private String oid;//oid
	
	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public boolean isDraft() {
		return draft;
	}

	public void setDraft(boolean draft) {
		this.draft = draft;
	} 

	public String getWrite_id() {
		return write_id;
	}

	public void setWrite_id(String write_id) {
		this.write_id = write_id;
	}
	
	public String getTypeTitle() {
		return typeTitle;
	}

	public void setTypeTitle(String typeTitle) {
		this.typeTitle = typeTitle;
	}
	public String getClassify() {
		return classify;
	}

	public void setClassify(String classify) {
		this.classify = classify;
	} 
	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	} 

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	} 

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		typeTitle = type.toString();
		this.classify = type.ordinal()+1+"";
		this.type = type;
	}

	public String getChiness() {
		return chiness;
	}

	public void setChiness(String chiness) {
		this.chiness = chiness;
	}

	public String getEnglish() {
		return english;
	}

	public void setEnglish(String english) {
		this.english = english;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public boolean isFinsh() {
		return finsh;
	}

	public void setFinsh(boolean finsh) {
		this.finsh = finsh;
	}

	public int getReadsum() {
		return readsum;
	}

	public void setReadsum(int readsum) {
		this.readsum = readsum;
	}

	public int getRead() {
		return read;
	}

	public void setRead(int read) {
		this.read = read;
	}

	public boolean isShare() {
		return share;
	}

	public void setShare(boolean share) {
		this.share = share;
	}

	public int getReply() {
		return reply;
	}

	public void setReply(int reply) {
		this.reply = reply;
	} 
 
	public Summary(Type type, String chiness, String english, String date,
			int year, int month, int day) {
		this.setType(type);
		this.chiness = chiness;
		this.english = english;
		this.year = year;
		this.month = month;
		this.day = day;
		this.date = date;
	}
	public String toString() {
		return "Summary[type:" + type + ",chiness=" + chiness + ",english="
				+ english + ",date=" + date + ",finsh=" + finsh + ",readsum="
				+ readsum + ",read=" + read + ",share=" + share + ",reply="
				+ reply + ",typeTitle=" + typeTitle + ",day=" + day + "]";
	}
}
